libxl: don't leak p in libxl__wait_for_backend
authorMatthew Daley <mattd@bugfuzz.com>
Mon, 2 Dec 2013 00:27:27 +0000 (13:27 +1300)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 2 Dec 2013 11:59:58 +0000 (11:59 +0000)
commit0ca009727b3ea5b17046e0ee990238e9488eab9c
tree228609f5465625d2b6f98ff88d9a6f685857f0a7
parent3928e5ccdb6c3c4e1f5c6f0d61b3d6219a24d009
libxl: don't leak p in libxl__wait_for_backend

Use libxl__xs_read_checked instead of xs_read. While at it, tidy up the
function as well.

Coverity-ID: 1055891
Signed-off-by: Matthew Daley <mattd@bugfuzz.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h